#ifndef FUSEITEM_H
#define FUSEITEM_H

#include "circuitcomponent.h"

class Fuse : public CircuitComponent
{
    Q_OBJECT
public:
    explicit Fuse(bool blown = false, QGraphicsItem *parent = nullptr);

    QPointF inputPort() const override;
    QPointF outputPort() const override;
    void setBlown(bool blown);
    void setText(const QString &text);

protected:
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;

private:
    bool m_blown;
    QString m_text;
};

#endif // FUSEITEM_H
